﻿using System;

namespace DreamCube.Foundation.Security
{
    /// <summary>
    /// 不执行任何加密的操作类
    /// </summary>
    public class NoneSecurity : ISecurity
    {
        /// <summary>
        /// 按原数据返回
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        public byte[] Encrypt(byte[] data)
        {
            return data;
        }

        /// <summary>
        /// 按原数据返回
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        public byte[] Decrypt(byte[] data)
        {
            return data;
        }
    }
}
